package lab02.test25;

import java.util.Scanner;

/**
 * Created by 阿阿阿阿豪丶 on 2017/11/21.
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int quotient = 0;
        System.out.println("请输入被除数");
        int dividend = sc.nextInt();
        System.out.println("请输入除数");
        int divisor = sc.nextInt();
        try {
            quotient = dividend / divisor;
        } catch (ArithmeticException e) {
            System.out.println("出错啦,除数不能为0！");
        }
        System.out.println(quotient);
    }
}